import { TableColumnType } from "ant-design-vue"

export const cf23AndYtdColumns: TableColumnType<DataType>[] = [
    {
        title: '客户',
        dataIndex: 'Client',
        key: 'Client',
        align: "center"
    },
    {
        title: '量产软硬一体',
        dataIndex: 'HardAndSoft',
        key: 'HardAndSoft',
        align: "center"
    },
    {
        title: '量产软件',
        dataIndex: 'Soft',
        key: 'Soft',
        align: "center"
    },
    {
        title: 'OTP',
        dataIndex: 'Otp',
        key: 'Otp',
        align: "center"
    },
    {
        title: '其他',
        dataIndex: 'Others',
        key: 'Others',
        align: "center"
    },
    {
        title: '总计',
        dataIndex: 'Total',
        key: 'Total',
        align: "center"
    },
]

export interface DataType {
    Id?: number,
    key?: number,
    Client: string,
    HardAndSoft: number,
    Soft: number,
    Otp: number,
    Others: number,
    Total: number,
}

export const cfData: DataType[] = [
    {
        Id: 1,
        key: 1,
        Client: '广汽',
        HardAndSoft: 1.8,
        Soft: 329,
        Otp: 5479,
        Others: 0,
        Total: 5810,
    },
    {
        Id:2,
        key:2,
        Client: '奇瑞',
        HardAndSoft: 2381,
        Soft: 0,
        Otp: 1746,
        Others: 0,
        Total: 4127,
    },
    {
        Id:3,
        key:3,
        Client: '东风',
        HardAndSoft: 70,
        Soft: 0,
        Otp: 120,
        Others: 0,
        Total: 190,
    },
    {
        Id:4,
        key:4,
        Client: '其他',
        HardAndSoft: 0,
        Soft: 0,
        Otp: 1325,
        Others: 280,
        Total: 1607,
    },
    {
        Id:5,
        key:5,
        Client: '总计',
        HardAndSoft: 2452,
        Soft: 329,
        Otp: 8669,
        Others: 282,
        Total: 11733,
    },
]